package com.ys.service.sys;

import org.springframework.ui.Model;

import com.ys.vo.R;

import lombok.AllArgsConstructor;
import lombok.Data;

public interface SysDictService {

	R addSysDict(String dictKey, String dictValue, String dictName);

	R editSysDict(Long id, String dictKey, String dictValue, String dictName);

	R deleteTrue(Long id);
	
	String toAddSysDict(Model model);
	
	String toEditSysDict(Model model, Long id);
	@Data
	@AllArgsConstructor
	public static class ToEditSysDictDto {
		private Long id; // ID
		private String dictKey;
		private String dictValue;
		private String dictName;
	}

}